package com.itheima.writer;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

/*
文件字符流 写数据
 */
public class Demo01 {

    public static void main(String[] args) throws IOException {
        //创建输出流对象
        FileWriter writer = new FileWriter("day13\\aaa\\a.txt",true);
        //写数据
        writer.write("\n");
        writer.flush();
        writer.write('魑');
        writer.write(new char[]{'吴','亦','凡'});
        writer.write(new char[]{'吴','亦','凡','是','人','渣'},1,5);
        writer.flush();
        writer.write("嘿嘿嘿,我最帅");
        writer.write("你放屁",0,3);
        writer.write("\n");

        //释放资源
        writer.close();



    }
}
